Skip to content

SRE-3830: fix @Library guard test check#12

Merged
JohnMalmberg merged 3 commits into
mainfrom
fix/SRE-3850-jenkins-library-guard-awk-regex
Jun 11, 2026
Merged

SRE-3830: fix @Library guard test check#12
JohnMalmberg merged 3 commits into
mainfrom
fix/SRE-3850-jenkins-library-guard-awk-regex

Conversation

@JohnMalmberg

Copy link
Copy Markdown
Contributor

Fix syntax error in the guard script that caused it to fail. Add unit tests for the guard to prevent regressions.

  • checks/guard-jenkins-library-pin.sh: Replace ( with [(] in the library_regex variable.

  • tests/guard-jenkins-library-pin-test.sh: New file. Seven-case unit test for the guard script.

  • .github/workflows/checks.yml: Add unit test step for the guard script.

Fix syntax error in the guard script that caused it to fail.
Add unit tests for the guard to prevent regressions.

- checks/guard-jenkins-library-pin.sh:
  Replace \( with [(] in the library_regex variable.

- tests/guard-jenkins-library-pin-test.sh: New file.
  Seven-case unit test for the guard script.

- .github/workflows/checks.yml:
  Add unit test step for the guard script.

Signed-off-by: John E. Malmberg <john.malmberg@hpe.com>
@JohnMalmberg JohnMalmberg requested a review from a team as a code owner June 9, 2026 15:09

@janekmi janekmi left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no https://daosio.atlassian.net/browse/SRE-3850 ticket. Please assign a correct one.

Comment thread .github/workflows/checks.yml Outdated
Comment thread tests/guard-jenkins-library-pin-test.sh Outdated
Comment thread tests/guard-jenkins-library-pin-test.sh Outdated
Comment thread .github/workflows/checks.yml Outdated
Comment thread tests/guard-jenkins-library-pin-test.sh Outdated
Comment thread tests/guard-jenkins-library-pin-test.sh Outdated
Comment thread tests/guard-jenkins-library-pin-test.sh Outdated
Comment thread tests/guard-jenkins-library-pin-test.sh Outdated
Comment thread tests/guard-jenkins-library-pin-test.sh Outdated
Comment thread tests/guard-jenkins-library-pin-test.sh
@JohnMalmberg JohnMalmberg changed the title SRE-3850: fix @Library guard test check SRE-3830: fix @Library guard test check Jun 10, 2026
Signed-off-by: John E. Malmberg <john.malmberg@hpe.com>
@JohnMalmberg JohnMalmberg requested a review from janekmi June 10, 2026 15:36
Comment thread tests/guard-jenkins-library-pin-test.sh Outdated
Comment thread tests/guard-jenkins-library-pin-test.sh Outdated
Comment thread tests/guard-jenkins-library-pin-test.sh Outdated
Comment thread tests/guard-jenkins-library-pin-test.sh Outdated
Signed-off-by: John E. Malmberg <john.malmberg@hpe.com>
@JohnMalmberg JohnMalmberg merged commit de3c09c into main Jun 11, 2026
7 checks passed
@JohnMalmberg JohnMalmberg deleted the fix/SRE-3850-jenkins-library-guard-awk-regex branch June 11, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants